<?php

class modulo extends object_standard {

    protected $id;
    protected $nombre;
    protected $kernel;
    
    var $components = array();
    var $auxiliars = array();

    public function attributes() {
        return array("id" => array(), "nombre" => array(),  "kernel" => array("foreign_name" => "k_m", "foreign" => "kernel", "foreign_attribute" => "id"));
    }

    public function primary_key() {
        return array("id");
    }

   
    public function relational_keys($class, $rel_name) {
        switch ($class) {
            case "kernel":
                switch ($rel_name) {
                    case "k_m":
                        return array("kernel");
                        break;
                }
            default:
                break;
        }
    }


}

?>